package com.graduate.game.assignment.mapper;

import com.graduate.game.assignment.pojo.assignment;
import com.graduate.game.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface assignmentMapper {

    //发布悬赏
    public int insertassignment(assignment assignment);

    //查询全部悬赏
    public List<assignment> lookAll();

    //根据ID查看这个悬赏
    public assignment getOneById(String id);

    //模糊查询
    public List<assignment> serchassignment(String title);

    //根据username查看全部悬赏
    public List<assignment> getAllByUsername(String publisher);

    //根据ID进行删除
    public int delById(long id);
}
